<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="format-detection" content="telephone=no" />
<meta name="renderer" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title><?php echo $d_title?></title>
<?php if ($d_keywords != '') { ?>
<meta name="keywords" content="<?php echo $d_keywords;?>" />
<?php } ?>
<?php if ($d_description != '') { ?>
<meta name="description" content="<?php echo $d_description;?>" />
<?php } ?>
<?php include($dir.$t_path.'inc_head.php');?>
</head>
<body>
<?php include($dir.$t_path.'inc_header.php');?>
<div id="content">
	<div class="container">
		<div class="l20">
			<div class="x3">
				<div class="hd1"><?php echo $c_name?> <span><?php echo $c_aname?></span></div>
				<div class="bd1">
					<ul class="channel_list">
						<?php echo $channel_list?>
					</ul>
				</div>
				<?php if ($c_rh == 1) { ?>
				<div class="hd1">推荐<?php echo $c_sname;?></div>
				<div class="bd1">
					<div class="l10 plist">
					<?php
					$result = sql_query('select id,d_name,d_picture,d_scontent,d_date from cms_detail where d_parent in ('.$c_sub.') and d_rec = 1 order by d_order desc , id desc limit 0 , 10');
					while ($row = sql_fetch_array($result)){
					?>
					<div class="x6">
						<div class="wrap mb10">
							<div class="thumbnail2"><a href="<?php echo d_url($row['id'])?>" target="_blank" title="<?php echo $row['d_name'];?>"><img src="<?php echo $row['d_picture'];?>" title="<?php echo $row['d_name'];?>" alt="<?php echo $row['d_name'];?>"/></a></div>
							<div class="ac cut"><a href="<?php echo d_url($row['id'])?>" target="_blank" title="<?php echo $row['d_name'];?>"><?php echo $row['d_name'];?></a></div>
						</div>
					</div>
					<?php
					}
					?>
					</div>
				</div>
				<div class="hd1">热门<?php echo $c_sname;?></div>
				<div class="bd1">
					<div class="l10 plist">
					<?php
					$result = sql_query('select id,d_name,d_picture,d_scontent,d_date from cms_detail where d_parent in ('.$c_sub.') and d_hot = 1 order by d_order desc , id desc limit 0 , 12');
					while ($row = sql_fetch_array($result)){
					?>
					<div class="x4">
						<div class="wrap mb10">
							<div class="thumbnail3"><a href="<?php echo d_url($row['id'])?>" target="_blank" title="<?php echo $row['d_name'];?>"><img src="<?php echo $row['d_picture'];?>" title="<?php echo $row['d_name'];?>" alt="<?php echo $row['d_name'];?>"/></a></div>
							<div class="ac cut"><a href="<?php echo d_url($row['id'])?>" target="_blank" title="<?php echo $row['d_name'];?>"><?php echo $row['d_name'];?></a></div>
						</div>
					</div>
					<?php
					}
					?>
					</div>
				</div>
				<?php } ?>
			</div>
			<div class="x9">
				<div id="current_location">当前位置：<a href="index.php">首页</a> > <?php echo $current_location?></div>
				<div class="l20 mt20">
					<div class="x6">
						<?php if($d_picture != '' && $d_slideshow == ''){ ?>
						<div id="detail_picture"><a href="<?php echo $d_picture ?>" target="_blank"><img src="<?php echo $d_picture?>" alt="<?php echo $d_name?>" title="<?php echo $d_name?>"></a></div>
						<?php } ?>
						<?php if($d_slideshow != ''){ ?>
						<div id="detail_slideshow">
							<script type="text/javascript">
							$(function(){
								$('#detail_slideshow').slide({
									trigger : 'click',
									effect : 'fade'
								});
							});
							</script>
							<ul class="bd">
							<?php
							$arr_slideshow = explode('|',$d_slideshow);
							foreach($arr_slideshow as $value){
								echo '<li><a href="'.$value.'" target="_blank"><img src="'.$value.'"  alt="'.$d_name.'" title="'.$d_name.'"/></a></li>';
							}
							?>
							</ul>
							<ul class="hd l10">
							<?php
							foreach($arr_slideshow as $value){
								echo '<li class="x2"><img class="mb10" src="'.$value.'" /></li>';
							}
							?>
							</ul>
						</div>
						<?php } ?>
					</div>
					<div class="x6">
						<h1 id="detail_name"><?php echo $d_name?></h1>
						<div id="detail_intro" class="quote mb20">来源：<?php echo $d_source?> 作者：<?php echo $d_author?> 发布日期：<?php echo date('Y-m-d',$d_date)?> 访问次数：<?php echo $d_hits?></div>
						<div class="quote">
							<p><?php echo $system_p1;?>：<?php echo $d_p1;?></p>
							<p><?php echo $system_p2;?>：<?php echo $d_p2;?></p>
							<p><?php echo $system_p3;?>：<?php echo $d_p3;?></p>
							<p><?php echo $system_p4;?>：<?php echo $d_p4;?></p>
						</div>
						<?php if ( $d_file != '' ) { ?>
						<div id="detail_attachment"><a class="btn bg-main" href="<?php echo $d_file ?>">点击下载</a></div>
						<?php } ?>
					</div>
				</div>
				<div id="detail_content"><?php echo $d_content;?></div>
				<div id="detail_around" class="quote">
					<p>上一<?php echo $c_sname?>：<?php echo $d_previous?></p>
					<p>下一<?php echo $c_sname?>：<?php echo $d_next?></p>
				</div>
			</div>
		</div>
	</div>
</div>
<?php include($dir.$t_path.'inc_footer.php');?>
<?php if ($system_thumbnail == 1) { ?>
<script type="text/javascript">
$(function() {
	var thumbnail2 = $('.thumbnail2');
	thumbnail2.find('img').jqthumb({
		width: thumbnail2.width(),
		height: thumbnail2.width() / <?php echo $system_twidth;?> * <?php echo $system_theight;?>

	});
	var thumbnail3 = $('.thumbnail3');
	thumbnail3.find('img').jqthumb({
		width: thumbnail3.width(),
		height: thumbnail3.width() / <?php echo $system_twidth;?> * <?php echo $system_theight;?>

	});
});
</script>
<?php } ?>
</body>
</html>
